<?php
require_once('../../config.php');
Doctrine::loadModels('../../models');

if( $_GET["transaction_id"])
{
	$transaction_id = strip_tags($_GET["transaction_id"]);
	file_put_contents  ( "param_delete_id.txt", $transaction_id);

	$q = Doctrine_Query::create();
	$q->update('FinTransactions')
          ->set('deleted', '1') 
          ->where('transaction_id ='.$transaction_id);           
	$rows = $q->execute();          
	//print $rows; // the number of affected rows
}

?>